class PC { 
	CPU cpu;
	HardDisk HD;
	public void setCPU(CPU c) {
		cpu = c;
	}
		public void setHardDisk(HardDisk h) {
                HD = h;
		}
		public void show() {
			System.out.println("cpu速度: " +cpu.getSpeed());
			System.out.println("HD容量: " +HD.getAmount());
		}
}
class CPU {
        int speed;
	public void setSpeed(int a) {
		speed = a;
	}
	public int getSpeed() {
		return speed;
	}
}
class HardDisk {
    int amount;
    public void setAmount(int a) {
	    amount = a;
    }
    public int getAmount() {
	    return amount;
    }
}
public class Test {
	public static void main(String[] args) {
		CPU cpu = new CPU();
		cpu.setSpeed(2200);
		HardDisk HD = new HardDisk();
                HD.setAmount(200);
		PC pc = new PC();
		pc.setCPU(cpu);
		pc.setHardDisk(HD);
		pc.show();
	}
}
